package org.hcyspartnoc.luoxin.pojo.po.chat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@NoArgsConstructor
@TableName("chat_counseling_session")
public class ChatCounselingSessionPo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("master_session_id")
    private String masterSessionId;
    @TableField("user_id")
    private Integer userId;
    @TableField("counselor_id")
    private String counselorId; // 注意：这里使用String类型来匹配char(11)
    @TableField("created_at")
    private LocalDateTime createdAt; // 使用LocalDateTime来匹配datetime类型
    @TableField("status")
    private Boolean status; // 使用Boolean类型来匹配bit类型，但注意MyBatis-Plus可能需要自定义TypeHandler来处理bit到Boolean的转换

}